import { defineStore } from "pinia"

const treeDate = defineStore('tree', {
  state: () => ({
    treeList: [
      {
        name: '项0',
        id: '0',
        children: [
          {
            name: '项0-0',
            id: '0-0',
            children: [
              {
                name: '项0-0-0',
                id: '0-0-0'
              },
              {
                name: '项0-0-1',
                id: '0-0-1'
              },
              {
                name: '项0-0-2',
                id: '0-0-2'
              }
            ]
          },
          {
            name: '项0-1',
            id: '0-1'
          },
          {
            name: '项0-1',
            id: '0-2'
          },
          {
            name: '项0-1',
            id: '0-3'
          },
          {
            name: '项0-1',
            id: '0-4'
          },
          {
            name: '项0-1',
            id: '0-5'
          }
        ]
      },
      {
        name: '项1',
        id: '1',
        children: [
          {
            name: '项1-0',
            id: '1-0'
          },
          {
            name: '项1-1',
            id: '1-1'
          }
        ]
      },
      {
        name: '项2',
        id: '2',
        children: [
          {
            name: '项2-0',
            id: '2-0'
          },
          {
            name: '项2-1',
            id: '2-1'
          }
        ]
      }
    ],
  })
})
export default treeDate